package com.lin.mptest.service.db1.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lin.mptest.entity.db1.TestA;
import com.lin.mptest.mapper.db1.TestAMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Slf4j
@Transactional(rollbackFor = Exception.class)
@DS("master")
public class TestAServiceImpl extends ServiceImpl<TestAMapper, TestA> implements com.lin.mptest.service.db1.ITestAService {

    @Override
    public List<TestA> getAll(){
        return this.list();
    }
}
